跳到主要内容

创建您的第一份配方

在安装好相机并连接到 OV80i 软件后,请按照下列步骤创建您的第一份配方。

创建新配方

第 1 步:访问配方创建

From the All Recipes page, click + New Recipe in the top-right corner.

New Recipe button

第 2 步:配置配方详细信息

将出现 Add A New Recipe 模态框。

必填字段:

  • 名称 - 为配方输入名称(必填)。该名称将出现在 All Recipes 页面。
  • 配方类型 - 从下拉菜单中选择配方类型(必填)。
提示

如需帮助选择正确的配方类型,请参见 Classifier vs Segmenter

可选字段:

  • 描述 - 为配方输入描述(可选)。此描述将出现在 All Recipes 页面以及 Recipe Editor 页面顶部。

Add A New Recipe modal

第 3 步:完成创建

单击 OK 以创建新的配方。

新建的配方将列在 All Recipes 页面上(未激活)。

打开配方编辑器

备注

要编辑配方,需先使配方处于“活动”状态。

  1. 在配方的右侧点击 Activate

Activate button

  1. 点击 Activate and go to editor 以确认并打开配方编辑器

Activate and go to editor button

成像设置

在本部分中,您将设置相机以获得被检测对象的清晰图像。

备注

成像设置对 Classification 和 Segmentation 配方相同。

配置步骤:

  1. 在页面左下角单击 Configure Imaging

Imaging Setup on the Recipe Editor page

  1. 将被检测对象放入相机视场中,并使用实时预览验证对象是否在镜头内

Imaging Setup with object in shot

  1. 按需在右侧调整相机设置,以获得对象的清晰图像

  2. 在页面右下角单击 Save Imaging Settings

备注

有关成像设置选项的更多信息,请参阅 Imaging Setup Fundamentals

模板图像与对齐

在本节中,您将捕获一个模板图像,并可选择配置对齐器。

备注

模板图像与对齐对 Classification 和 Segmentation 配方相同。

第 1 步:导航至模板设置

在成像设置页面,使用面包屑菜单选择模板图像与对齐。或从配方编辑器中选择模板图像与对齐。

Recipe Editor breadcrumb menu with Imaging Setup selected

第 2 步:捕获模板图像

选择 Capture Template Image

备注

模板图像一旦捕获,预览窗格(左侧)将显示模板图像,而不是相机视场的实时预览。要查看来自相机的实时预览,请向下滚动页面并选择 Live Preview Mode。若要重新捕获模板图像,请确保未启用实时预览,然后点击 Re-Capture Template Image。

第 3 步:配置对齐器(可选)

如需要进行对齐:

  1. 在 Template Regions 下,选择 + Rectangle+ Circle(与被检测对象的形状相匹配的任一项)
  2. 重新定位/调整区域大小以适应该对象
  3. 在 Settings 下,将 Rotation Range to 20 degrees 设置为 20 度。若对象相对于本模板图像旋转最多 20 度,对齐器将能够定位对象
  4. 如有需要,调整 Sensitivity 与 Confidence Threshold
  5. 点击 Save

如不需要对齐: 若应用不需要对齐器,请切换 Skip Aligner 选项,在页面底部点击 Save

备注

要了解更多关于模板图像与对齐页面以及何时使用对齐器、何时不使用,请参阅 Template Image and Alignment Theory

Template Image and Alignment screen with a rectangular template region overlayed

检查设置

在本节中,您将配置相机要检测的内容(Inspection Types)以及在对象上要执行检查的位置(Inspection Regions)。

备注

Inspection Setup is the same for Classification and Segmentation Recipes.

第 1 步:导航至 Inspection Setup

从模板图像与对齐页面,使用面包屑菜单选择 Inspection Setup。或从配方编辑器中选择 Inspection Setup。

备注

左侧的预览窗格显示模板图像,而非相机视场的实时预览。若要查看来自相机的实时预览,请向下滚动页面并选择 Live Preview Mode。若要添加或编辑 Inspection Types 与 Inspection Regions,请确保未启用实时预览。

Recipe Editor breadcrumb menu with Inspection Setup selected

第 2 步:配置 Inspection Types

在 Inspection Types 下,默认会出现 "Inspection Type 1"。单击 Edit 来重命名。

备注
  • Inspection Types 指正在执行的不同类型(类别)的检查,并允许您将视觉上相似的 Inspection Regions(ROIs)分组
  • Inspection Regions (ROIs) 指应执行检查的区域

Inspection Types menu

第 3 步:添加 Inspection Regions

  1. 在 Inspection Regions 下,单击 + Add Inspection Region
  2. 在屏幕上重新定位并调整黄色框以适应该对象的特定区域
备注

默认情况下,Inspection Region 将命名为 "New ROI"。单击 Edit 以更改名称。

Add Inspection Region button

第 4 步:完成设置

  1. 根据本配方的需要添加尽可能多的 Inspection Types 与 Inspection Regions
  2. 在页面底部单击 Save
备注

有关 Inspect Setup 页面的更多信息,请参阅 Inspection Setup & ROI Types

Inspection Setup page with example ROI overlayed

下一步

如果您选择了 Classification 配方类型: 继续至 Train a Classifier.

如果您选择了 Segmentation 配方类型: 继续至 Using the Segmenter.

🔗 相关内容